home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / SSnowMan.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-24  |  949 b   |  44 lines

  1. // SSnowMan.h: Schnittstelle fⁿr die Klasse SSnowMan.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_SSNOWMAN_H__E6F99CA1_D9A0_11D4_AF7D_0050DA829896__INCLUDED_)
  6. #define AFX_SSNOWMAN_H__E6F99CA1_D9A0_11D4_AF7D_0050DA829896__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include <gl/glu.h>
  13.  
  14. #include "STexture.h"
  15.  
  16. class SSnowMan  
  17. {
  18. public:
  19.     void update(float frametime);
  20.     void create();
  21.     inline void setPosition(float xPos,float yPos, float zPos);
  22.  
  23.     SSnowMan();
  24.     virtual ~SSnowMan();
  25. protected:
  26.     float position[3];
  27.     STexture schnee;
  28.     STexture muetze;
  29.  
  30.     GLUquadricObj* object;
  31.     GLUquadricObj* nase;
  32.     float rotation;
  33. };
  34.  
  35. void SSnowMan::setPosition(float xPos, float yPos, float zPos)
  36. {
  37.     position[0] = xPos;
  38.     position[1] = yPos;
  39.     position[2] = zPos;
  40. }
  41.  
  42.  
  43. #endif // !defined(AFX_SSNOWMAN_H__E6F99CA1_D9A0_11D4_AF7D_0050DA829896__INCLUDED_)
  44.